package com.ldkj.panzh.controller;

import com.ldkj.panzh.domain.TableDataInfo;
import com.ldkj.panzh.param.ArtemisParam;
import com.ldkj.panzh.service.ArtemisPostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class ArtemisController extends BaseController {

    @Autowired
    ArtemisPostService artemisPostService;

    /**
     * 获取摄像头地址信息
     * @param aParam
     * @return
     * @throws Exception
     */
    @RequestMapping("/getArtemisUrl")
    @ResponseBody
    public TableDataInfo getArtemisPostUrl(@RequestBody ArtemisParam aParam) throws Exception {
        return getDataTable(artemisPostService.getArtemisPostUrl(aParam));
    }

}
